package com.querie.dao;

import java.util.List;

import com.querie.model.beans.FragmentSession;
import com.querie.model.beans.Query;
public interface QueryDAO{
	
	public Query load(final long sessionid, final long queryid) throws Exception;

	public Query load(final long queryid) throws Exception;
	
	public int delete(final long sessionid, final long queryid) throws Exception;

	public int update(final Query data) throws Exception;

	public long insert(final Query data) throws Exception;


	public List<Query> queryAll()throws Exception;
	
	public int deleteAll()throws Exception;
	
	public List<Query> queryAllWithPage(int startOfPage, int...pageSize)throws Exception;

	public int countAll() throws Exception;
	
	public List<Query> queryAll(long sessionid)throws Exception;

	}